package com.whkjdx.examtool.feign;

import com.whkjdx.examtool.feign.dto.ExamResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "answer",url = "https://exam.chinaedu.net")
public interface AnswerFeign {

    /**
     * 查询考试答案
     * @param cookie
     * @param answerPaperRecordId
     * @return
     */
    @PostMapping("/oxer/app/ots/TestActivity/QueryAnswerPaperDetails")
    String queryAnswerPaperDetails(@RequestHeader String cookie,
                                         @RequestParam String answerPaperRecordId);


    /**
     * 查询考试题目
     * @param cookie
     * @param arrangementId
     * @param resourcePackageId
     * @return
     */
    @PostMapping("/oxer/app/ots/TestActivity/StartAnswerPaper")
    String startAnswerPaper(@RequestHeader String cookie,
                            @RequestParam String arrangementId,
                            @RequestParam String resourcePackageId);


    @PostMapping("/oxer/app/ots/TestActivity/SubmitAnswerPaper")
    String submitAnswerPaper(@RequestHeader String cookie,@RequestBody Map param);
}
